package lotto;

import java.util.Arrays;

public class RealtivityMap {

	static double[] occurArr = { 445.0, 457.0, 459.0, 456.0, 447.0, 490.0,
			454.0, 422.0, 459.0, 453.0, 469.0, 428.0, 390.0, 436.0, 428.0,
			435.0, 460.0, 435.0, 441.0, 433.0, 429.0, 472.0, 436.0, 449.0,
			461.0, 482.0, 461.0, 422.0, 437.0, 422.0, 470.0, 495.0, 476.0,
			444.0, 442.0, 458.0, 444.0, 475.0, 452.0, 452.0, 459.0, 456.0,
			476.0, 433.0, 411.0, 426.0, 439.0, 451.0, 499.0 };

	public static double[][] getRelMap(double[] arr) {
		double[][] nums = new double[49][49];

		for (int i = 0; i < arr.length; i++) {


			for (int x = 0; x < arr.length; x++) {
				
				
				if (i == x){
					nums[i][x] = 1;
				}
				else {
					
					
					nums[i][x] = arr[x] / arr[x + 1];
				}

			}

		}

		return nums;
	}

	public static void main(String[] args) {

	double[][] resultMap = getRelMap(occurArr);

		System.out.println(Arrays.toString(resultMap));

	}

}
